<div class="comment">
    <div class="comment-header">Comments</div>
    <% @comments.each do |comment|-%>
          <div class="comments-block">
                  <div>
                       <%@user = User.find(:first , :conditions => { :id => comment.user_id})-%>
<%unless @user.full_name.nil? -%>
<strong><%=@user.full_name -%> Says</strong>
<%end-%>
                  </div>
                  <div class="comment-date"><%=comment.created_at.to_formatted_s(:long_ordinal)%></div>
                  <div><%=comment.content%></div>
          </div>
    <%end -%>
    <div class="leave-a-comment">Leave a comment</div>
    <div class="comment-fields">
      <% form_for :comment, :url => {:controller=>"advertisments", :action => "postcomment" , :id => params[:id], :university => params[:university] } do |comment_form| %>
        <%= comment_form.text_field  :full_name ,:size => 45,:class=>"comment-name",:value=>"Your Name*",:maxlength=>"40" -%>
        <br/>
        <%= comment_form.text_field  :email ,:size => 45,:class=>"comment-email",:value=>"E-mail ID*(will not be published)*",:maxlength=>"40" -%>
        <div class="comment-text"><%= comment_form.text_area  :content , :size => "75x3"  ,:wrap=> "virtual",:value=>"Comment*"%></div>
        <%=submit_tag "Submit Comment" -%>
      <%end -%>
    </div>
</div>